package io.acna.blog.service.impl;

import io.acna.basedao.mybatis.service.impl.BaseService;
import io.acna.blog.dao.UserMapper;
import io.acna.blog.entities.User;
import io.acna.blog.service.IUserService;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;

@Service(version = "0.0.1")
public class UserService extends BaseService<User> implements IUserService {

	private final UserMapper userDao;
	public static final String COLUMN_NAME = "user_name";
	public static final String FIELD_ID_NAME = "userId";

	@Autowired
	public UserService(UserMapper userDao) {
		super(userDao, COLUMN_NAME, FIELD_ID_NAME);
		this.userDao = userDao;
	}

	@Override
	public User login(String username, String password) {
		return null;
	}

	@Override
	public User register(User user) {
		return null;
	}
}
